package com.itheima.pojo;

import java.util.Date;

public class MedicalEquipment {
    private int id;
    private String name;
    private String model;
    private Date purchaseDate;
    private AssetCode assetCode;

    // 构造方法
    public MedicalEquipment() {}

    public MedicalEquipment(int id, String name, String model, Date purchaseDate, AssetCode assetCode) {
        this.id = id;
        this.name = name;
        this.model = model;
        this.purchaseDate = purchaseDate;
        this.assetCode = assetCode;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public AssetCode getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(AssetCode assetCode) {
        this.assetCode = assetCode;
    }

    // toString 方法
    @Override
    public String toString() {
        return "MedicalEquipment{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", model='" + model + '\'' +
                ", purchaseDate=" + purchaseDate +
                ", assetCode=" + assetCode +
                '}';
    }
}
